package com.eunion.web.admin.bo;

import javax.validation.constraints.NotNull;
import javax.validation.constraints.Size;

import org.hibernate.validator.constraints.NotEmpty;

/**
 * 处理用户登陆、注册、找回密码的VO.
 * 
 * 
 * @version 2016年1月30日
 */
public class AuthUserBo {

	private String email;

	private String name;

	@NotNull(message = "新密码不能为空")
	@NotEmpty(message = "新密码不能为空")
	@Size(min = 6, max = 20, message = "新密码长度非法") 
	private String password;

	@NotNull(message = "重复新密码不能为空")
	@NotEmpty(message = "重复新密码不能为空")
	@Size(min = 6, max = 20, message = "重复新密码长度非法") 
	private String rePassword;

	@NotNull(message = "密码不能为空")
	@NotEmpty(message = "密码不能为空")
	@Size(min = 6, max = 20, message = "密码长度非法") 
	private String oldPassword;

	private String code;

	private String token;

	private String mobile;

	private String verifycode;// 验证码

	/**
	 * @return 返回 email.
	 */
	public String getEmail() {
		return email;
	}

	/**
	 * @param 设置
	 *            email email.
	 */
	public void setEmail(String email) {
		this.email = email;
	}

	/**
	 * @return 返回 name.
	 */
	public String getName() {
		return name;
	}

	/**
	 * @param 设置
	 *            name name.
	 */
	public void setName(String name) {
		this.name = name;
	}

	/**
	 * @return 返回 password.
	 */
	public String getPassword() {
		return password;
	}

	/**
	 * @param 设置
	 *            password password.
	 */
	public void setPassword(String password) {
		this.password = password;
	}

	/**
	 * @return 返回 rePassword.
	 */
	public String getRePassword() {
		return rePassword;
	}

	/**
	 * @param 设置
	 *            rePassword rePassword.
	 */
	public void setRePassword(String rePassword) {
		this.rePassword = rePassword;
	}

	/**
	 * @return 返回 oldPassword.
	 */
	public String getOldPassword() {
		return oldPassword;
	}

	/**
	 * @param 设置
	 *            oldPassword oldPassword.
	 */
	public void setOldPassword(String oldPassword) {
		this.oldPassword = oldPassword;
	}

	/**
	 * @return 返回 code.
	 */
	public String getCode() {
		return code;
	}

	/**
	 * @param 设置
	 *            code code.
	 */
	public void setCode(String code) {
		this.code = code;
	}

	/**
	 * @return 返回 mobile.
	 */
	public String getMobile() {
		return mobile;
	}

	/**
	 * @param 设置
	 *            mobile mobile.
	 */
	public void setMobile(String mobile) {
		this.mobile = mobile;
	}

	/**
	 * @return 返回 token.
	 */
	public String getToken() {
		return token;
	}

	/**
	 * @param 设置
	 *            token token.
	 */
	public void setToken(String token) {
		this.token = token;
	}

	public String getVerifycode() {
		return verifycode;
	}

	public void setVerifycode(String verifycode) {
		this.verifycode = verifycode;
	}

}
